package com.kapcb.context.configuration;

import com.kapcb.context.constant.ApplicationContextConstant;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <a>Title: ThreadPoolProperties </a>
 * <a>Author: Kapcb <a>
 * <a>Description: ThreadPoolProperties <a>
 *
 * @author Kapcb
 * @version 1.0
 * @date 2024/4/21 13:24
 * @since 1.0
 */
@Data
@ConfigurationProperties(prefix = ApplicationContextConstant.THREAD_POOL, ignoreInvalidFields = true)
public class ThreadPoolProperties {

    private int corePoolSize = 5;

    private int maxPoolSize = 5;

    private int queueCapacity = 999;

    private int keepAliveSeconds = 30;

    private String threadNamePrefix = "kapcb-framework-thread-";

}
